<template>
  <div class="entry-footer-tags">
    <a
      class="footer-tag width-limited"
      href="#"
      v-for="item in props.tags"
      :key="item"
      :title="item"
    >
      {{ item }}</a
    >
  </div>
</template>

<script setup lang="ts">
const props = defineProps<{
  tags: Array<string>
}>()
</script>

<style lang="scss" scoped>
.width-limited {
  max-width: 65px;
}
.footer-tag {
  background-color: #f2f3f5;
  padding: 0 6px;
  border-radius: 2px;
  // max-width: 76px;
  box-sizing: border-box;
  margin-left: 6px;
  color: #8a919f;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  min-height: 18px;
  line-height: 18px;
}
</style>
